import http from "./request.js";

async function getBanner() {
  let { data } = await http("/data.json", "get");
  //   let {data}={data:[],status:200,config}
  return data;
}

async function getlist(url, params) {
  let { data } = await http(url, "get", {}, params);
  //   let {data}={data:[],status:200,config}
  return data;
}
export { getBanner, getlist };
